mem_access: mem event additions for access
authorJoe Epstein <jepstein98@gmail.com>
Fri, 7 Jan 2011 11:54:40 +0000 (11:54 +0000)
committerJoe Epstein <jepstein98@gmail.com>
Fri, 7 Jan 2011 11:54:40 +0000 (11:54 +0000)
commitfbbedcae8c0c5374f8c0a869f49784b37baf04bb
tree6a2a50b6ea18fef45c61f6e648f154c0138e244c
parenta6cdb9545035b731802de41e10b2b43ef4ffd9c0
mem_access: mem event additions for access

* Adds an ACCESS memory event type, with RESUME as the action.

* Refactors the bits in the memory event to store whether the memory event
  was a read, write, or execute (for access memory events only).  I used
  bits sparingly to keep the structure somewhat the same size.

* Modified VMX to report the needed information in its nested page fault.
  SVM is not implemented in this patch series.

Signed-off-by: Joe Epstein <jepstein98@gmail.com>
Acked-by: Keir Fraser <keir@xen.org>
Acked-by: Tim Deegan <Tim.Deegan@citrix.com>
14 files changed:
tools/xenpaging/xenpaging.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/mm/Makefile
xen/arch/x86/mm/mem_access.c [new file with mode: 0644]
xen/arch/x86/mm/mem_event.c
xen/arch/x86/mm/p2m.c
xen/include/asm-x86/hvm/hvm.h
xen/include/asm-x86/mem_access.h [new file with mode: 0644]
xen/include/asm-x86/mem_event.h
xen/include/asm-x86/p2m.h
xen/include/public/domctl.h
xen/include/public/mem_event.h